package com.example.mapper;

import com.example.entity.FacilityClassify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: tobed
 * @date: 2022/11/14
 * @time: 10:14
 */
@Mapper
public interface FacilityClassifyMapper {

    /*单查*/
    FacilityClassify getOneById(@Param("id") Integer facilityClassify);

    /*全查*/
    List<FacilityClassify> list(String facilityClassifyName);

    /*状态修改*/
    int updateStatus(@Param("updateTime") Date updateTime,@Param("status") int status,@Param("id") int id);

    /*修改*/
    int update(@Param("id") Integer id, @Param("facilityClassifyName") String facilityClassifyName, @Param("updateTime") Date updateTime);

    /*删除分类*/
    int remove(@Param("id") Integer id);

    /*添加分类信息*/
    int create(FacilityClassify facilityClassify);

}
